package com.sc.nft.entity.dto;

import com.sc.nft.dto.IdRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ModifyPhoneNumberRecordsDTO extends IdRequest {

    @ApiModelProperty(value = "id")
    @NotNull(message = "修改Id不能为空！")
    private Long id;

    @ApiModelProperty(value = "原手机号")
    private String changeBeforeUserTel;

    @ApiModelProperty(value = "新手机号")
    @NotBlank(message = "新手机号不能为空！")
    @Length(min = 1, max = 11, message = "新手机号最大长度11位")
    private String changeAfterUserTel;

}


